import http from '../util/request.js'

export default {
    upload: (file) => {
        const formData = new FormData();
        formData.append('file', file);

        return http({
            url: '/upload',
            method: 'POST',
            data: formData,
            responseType : 'json'
        });
    }
}

